package com.xltx.sms.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author liuyc
 * @ClassName AliyunSmsProperties
 * @Description Alibaba SMS configuration
 * @Date 2021/12/16 14:27
 */
@ConfigurationProperties(prefix = AliyunSmsProperties.PREFIX)
@Component
public class AliyunSmsProperties {

    /**
     * Alibaba SMS service configuration prefix name
     */
    public static final String PREFIX = "xltx.sms";

    /**
     * accessKeyId
     */
    private String accessKey;

    /**
     * accessSecret
     */
    private String secretKey;

    /**
     * SMS API product domain name
     */
    private String endpoint = "dysmsapi.aliyuncs.com";

    /**
     * regionId
     */
    private String regionId = "cn-hangzhou";

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }
}
